package router

import (
	"es-ad/controller/admin"
	"github.com/gin-gonic/gin"
)

type AdminRouters struct {
	Name        string
	RouterGroup *gin.RouterGroup
}

func (mr *AdminRouters) SetName() {
	mr.Name = "admin"
}

func (mr *AdminRouters) GetName() string {
	return mr.Name
}

func (mr *AdminRouters) SetGroupName(r *gin.Engine) {
	mr.RouterGroup = r.Group(mr.Name)
}

func (mr *AdminRouters) InitRouters() {
	mr.RouterGroup.POST("customer/singleAdd", admin.SingleAdd())
}
